package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.SetFindPasswordIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class SetFindPasswordModel extends RetrofitBaseModel implements SetFindPasswordIface<SuccessBean> {
    private AllService allService;
    private Retrofit retrofit;
    public SetFindPasswordModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void SetFindPassword(String setflag, String phem, String password, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.setFindPassword(setflag,phem,password);
        callenqueue(call,tListener);
    }
}
